require 'Win32API'

language = Win32API.new("kernel32.dll", "GetLocaleInfoA", ['L', 'L', 'P', 'L'], 'L')
x = " " * 255
language.Call(1024, 4097, x, 255)
puts x.strip
